Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve the problem of the cannot import name 'AggsProxy' from elasticsearch_dsl.search #314 #318

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

priyanshu69code
Copy link

Edit the file utils.py and replace the "from elasticsearch_dsl.search import AggsProxy" with the "from elasticsearch_dsl.search_base import AggsProxy"

It will be very use full if You just merge it with the main brach.

@anoopgupta3819
Copy link

from elasticsearch_dsl._async.search import ( # noqa: F401
AsyncEmptySearch,
AsyncMultiSearch,
AsyncSearch,
)
from elasticsearch_dsl._sync.search import ( # noqa: F401
EmptySearch,
MultiSearch,
Search,
)
from elasticsearch_dsl.search_base import Q # noqa: F401
from elasticsearch_dsl.search_base import AggsProxy #new added code

it's not utils.py it's inside elasticsearch_dsl\search.py module fixed 100%

@millerf
Copy link

millerf commented Nov 24, 2024

See this approach that should be more future-proof (see this comment by Elastic team)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants